package com.example.im.service;

import com.example.im.model.Message;
import java.util.List;

public interface MessageService {
    void saveMessage(Message message);
    List<Message> getMessagesByGroup(String groupId);
    List<Message> getMessagesByUser(String fromUser); // 可选
}